//
//  V2UserLoginResult.m
//  
//
//  Created by hulian-ios on 16/12/18.
//  Copyright © 2016年 hulian-ios. All rights reserved.
//

#import "HLUserLoginResult.h"

#define USERID  @"userid"
#define USER_PIC  @"user_pic"
#define NICKNAME  @"nickname"


@implementation HLUserLoginResult

- (void)encodeWithCoder:(NSCoder *)aCoder {
    
    [aCoder encodeObject:self.userid forKey:USERID];
    [aCoder encodeObject:self.user_pic forKey:USER_PIC];
    [aCoder encodeObject:self.nickname forKey:NICKNAME];
}

- (instancetype)initWithCoder:(NSCoder *)aDecoder {
    if (self = [super init]) {
        self.userid = [aDecoder decodeObjectForKey:USERID];
        self.user_pic = [aDecoder decodeObjectForKey:USER_PIC];
        self.nickname = [aDecoder decodeObjectForKey:NICKNAME];
    }
    return self;
}

@end




